package com.atguigu.gulimall.member.feign.fallback;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.member.feign.CouponFeignService;
import org.springframework.stereotype.Component;

/**
 * @create: 2024/8/17
 * @author: gyhe10
 * @description: CouponFeignService 接口的降级类
 **/

@Component
public class CouponFeignServiceFallback implements CouponFeignService {
    @Override
    public R memberCoupons() {
        // 记录日志
        System.out.println("调用coupon模块查询会员所有优惠券失败");
        return null;
    }
}
